Skip to content

refactor: simplify policy reference validation and enable feature flag#1676

Merged
Artuomka merged 1 commit intomainfrom
backend_ceadr_as_default
Mar 18, 2026
Merged

refactor: simplify policy reference validation and enable feature flag#1676
Artuomka merged 1 commit intomainfrom
backend_ceadr_as_default

Conversation

@Artuomka
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings March 18, 2026 15:40
@Artuomka Artuomka enabled auto-merge March 18, 2026 15:40
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to simplify Cedar policy reference validation logic and (per title) enable the Cedar authorization feature flag used by guards/services to switch to Cedar-first authorization.

Changes:

  • Forces Cedar authorization to be enabled by hardcoding isFeatureEnabled() to return true.
  • Refactors validatePolicyReferences() to a more compact style (inline matchAll(...).map(...) arrays and condensed exception throw).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +40 to +41
// return process.env.CEDAR_AUTHORIZATION_ENABLED === 'true';
return true;
@Artuomka Artuomka merged commit ea9da9b into main Mar 18, 2026
21 of 23 checks passed
@Artuomka Artuomka deleted the backend_ceadr_as_default branch March 18, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants